package com.wsx.ones.cloud.client;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wangshuaixin on 17/5/4.
 */
@RestController
public class ClientController {

    @Value("${foo}")
    String foo;

    @Value("${my.message}")
    String message;

    @RequestMapping(
            value = "/get",
            method = {RequestMethod.GET}
    )
    @ResponseBody
    public String getRemote() {
        return foo + "===" + message;
    }

}
